package j_graphics;
import java.awt.*;
import java.awt.event.*;

public class XorMode extends Frame
{
	public XorMode()
	{
		this.setBackground(new Color(150,0,0));
	}

	public void paint(Graphics g)
	{
		g.setColor(new Color(255,255,255));
		g.drawRect(50,50,150,150);
		//g.setXORMode(new Color(150,0,0));
		g.drawRect(50,50,150,150);

	}

	public static void main(String[] args) 
	{
		XorMode x = new XorMode();
		x.setSize(300,300);
		x.setVisible(true);
	}
}
